package dper.study.codes.concurrent.pool;

import java.util.concurrent.*;

/**
 * Created by leichen on 2017/3/21.
 */
public class UserDefineExecutors {
    public static ExecutorService userDefineThreadPool(){
        BlockingQueue<Runnable> queue = new ArrayBlockingQueue<Runnable>(10) ;
        ThreadPoolExecutor pool =
                new ThreadPoolExecutor(3, 5, 60, TimeUnit.MICROSECONDS, queue);
        return pool ;
    }
}


